/** <a href="http://www.cpupk.com/decompiler">Eclipse Class Decompiler</a> plugin, Copyright (c) 2017 Chen Chao. **/
package com.minierp.dao.hibernate;

import com.minierp.dao.PrintLogDao;
import com.minierp.dao.hibernate.BaseDaoImpl;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;

public class PrintLogDaoImpl extends BaseDaoImpl implements PrintLogDao {
	public List getList(String relType, long relId) {
		String sql = "from com.minierp.model.PrintLog p where p.relId=" + relId
				+ " and p.relType=:relType" + " order by p.printTime desc";
		Session sess = null;

		List arg7;
		try {
			sess = this.getSession();
			Query q = sess.createQuery(sql);
			q.setString("relType", relType);
			arg7 = q.list();
		} finally {
			if (sess != null) {
				this.releaseSession(sess);
			}

		}

		return arg7;
	}
}